﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Domain.Entity.Scheduling
{
    /// <summary>
    /// 班组计划
    /// </summary>
    [Table("Plan")]
    public class Plan:Audit
    {
        /// <summary>
        /// 计划Id
        /// </summary>
        [Key]
        public int plan_Id { get; set; }
        /// <summary>
        /// 计划名称
        /// </summary>
        public string ?plan_Name { get; set; }
        /// <summary>
        /// 计划编码
        /// </summary>
        public string? plan_encode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }//1.草稿2.已完成
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime Stime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime Etime { get; set; }
        /// <summary>
        /// 轮班
        /// </summary>
        public int ? shifts { get; set; } //1白班 2:两班倒 3:三班倒
        /// <summary>
        /// 倒班
        /// </summary>
        public int ? Shift { get; set; }//1:按天 2:按天 3:按月4:按季度5:fen
        /// <summary>
        /// 备注
        /// </summary>
        public string ? Remark { get; set; }
        /// <summary>
        /// 计划外键
        /// </summary>
        public int plan_type_Id { get; set; }


    }
}
